Optimal. Leaf size=36 \[ \frac {2 i}{d \sqrt {e \cos (c+d x)} \sqrt {a+i a \tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {3596, 3569}
\begin {gather*} \frac {2 i}{d \sqrt {a+i a \tan (c+d x)} \sqrt {e \cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3569
Rule 3596
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {e \cos (c+d x)} \sqrt {a+i a \tan (c+d x)}} \, dx &=\frac {\int \frac {\sqrt {e \sec (c+d x)}}{\sqrt {a+i a \tan (c+d x)}} \, dx}{\sqrt {e \cos (c+d x)} \sqrt {e \sec (c+d x)}}\\ &=\frac {2 i}{d \sqrt {e \cos (c+d x)} \sqrt {a+i a \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.20, size = 36, normalized size = 1.00 \begin {gather*} \frac {2 i}{d \sqrt {e \cos (c+d x)} \sqrt {a+i a \tan (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 66 vs. \(2 (30 ) = 60\).
time = 0.93, size = 67, normalized size = 1.86
method | result | size |
risch | \(\frac {i \sqrt {2}}{\sqrt {e \cos \left (d x +c \right )}\, \sqrt {\frac {a \,{\mathrm e}^{2 i \left (d x +c \right )}}{{\mathrm e}^{2 i \left (d x +c \right )}+1}}\, d}\) | \(46\) |
default | \(\frac {2 i \sqrt {e \cos \left (d x +c \right )}\, \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (-i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{d e a}\) | \(67\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 75 vs. \(2 (28) = 56\).
time = 0.56, size = 75, normalized size = 2.08 \begin {gather*} \frac {2 i \, \sqrt {-\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1} e^{\left (-\frac {1}{2}\right )}}{\sqrt {a} d \sqrt {-\frac {2 i \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.32, size = 54, normalized size = 1.50 \begin {gather*} \frac {2 i \, \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {e^{\left (2 i \, d x + 2 i \, c\right )} + 1} e^{\left (-\frac {1}{2} i \, d x - \frac {1}{2} i \, c - \frac {1}{2}\right )}}{a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {e \cos {\left (c + d x \right )}} \sqrt {i a \left (\tan {\left (c + d x \right )} - i\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {1}{\sqrt {e\,\cos \left (c+d\,x\right )}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________